import time

import pytest
from selenium import webdriver

from settings import URL


@pytest.fixture(scope='class')
def login():
    driver = webdriver.Chrome()
    # 设置全屏
    driver.maximize_window()
    driver.implicitly_wait(10)
    driver.get(URL.url)
    time.sleep(3)
    yield driver
    driver.quit()